import request from '@/utils/http.js'

// 保存商品信息
export const savepmsApi = (data) => {
  return request({
    url: 'pms/backend/over/save',
    method: 'POST',
    data: JSON.stringify(data),
  })
}

// 商品上架
export const uppmsApi = (spuId) => {
  return request({
    url: `pms/backend/over/up/${spuId}`,
    method: 'POST',
  })
}

// 商品下架
export const downpmsApi = (spuIds) => {
  return request({
    url: 'pms/backend/over/down',
    method: 'POST',
    data:JSON.stringify(spuIds)
  })
}